setTextOnPath

abstract fun setTextOnPath(block: DesignBlock, svgPath: String?)

Sets or clears the SVG path that defines a text block's baseline.

When a path is set, text is laid out as a single line along the path. Pass null to restore normal text layout. The path must be a valid single-subpath SVG path in the block's local coordinate space.

Parameters

block

the text block to modify.

svgPath

the SVG path string, or null to clear the path.